package com.kymatrix.kycarbon.xsmd.common.business.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liujie
 * @date 2024-03-14
 */
@Data
@ApiModel("批量导入信息返回响应")
public class BatchInsertResp {
    
    @ApiModelProperty("批量导入是否成功，成功为true 失败为false")
    private Boolean success = true;

    @ApiModelProperty("批量导入失败时的失败信息列表")
    private List<ErrorMsgResp> errorMsgRespList = new ArrayList<>();
    
    @ApiModel("错误信息")
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ErrorMsgResp {
        @ApiModelProperty("错误数据位置 从0开始")
        private Integer index;

        @ApiModelProperty("错误信息")
        private String errorMsg;

    }
    
}
